<template>
	<view class="main">
		<u-navbar
		title="信用认证"
		title-size="34"
		back-icon-color="#ffffff"
		title-color="#ffffff"
		:border-bottom="false"
		:background="background">
		</u-navbar>
		<view class="score">
			<view class="title">口碑评估体系</view>
			<view class="cont">
				<view class="num">60</view>
				<view class="des">信用一般</view>
			</view>
		</view>
		<view class="content">
			<view class="title">身份认证</view>
			<view class="cont">
				<view class="item">
					<view class="left">
						<image src="../../static/image/ico/auth-ico-1.png" mode="" class="ico"></image>
						<view class="item-cont">
							<view class="name">实名认证</view>
							<view class="des">通过实名认证，提高信用度</view>
						</view>
					</view>
					<view class="right">
						<button type="default" @tap="toPage('/pages/Certification/authProtocol')">已认证</button>
					</view>
				</view>
				<view class="item">
					<view class="left">
						<image src="../../static/image/ico/auth-ico-2.png" mode="" class="ico"></image>
						<view class="item-cont">
							<view class="name">最高学历认证</view>
							<view class="des">通过中国大陆教育部数据库查询</view>
						</view>
					</view>
					<view class="right">
						<button type="default" @tap="toPage('/pages/SignUp/education')">去认证</button>
					</view>
				</view>
			</view>
		</view>
		<view class="content">
			<view class="title">项目经验</view>
			<view class="cont">
				<view class="item">
					<view class="left">
						<image src="../../static/image/ico/auth-ico-3.png" mode="" class="ico"></image>
						<view class="item-cont">
							<view class="name">成功接单</view>
							<view class="des">完成接单，提高工作经验</view>
						</view>
					</view>
					<view class="right">
						<button type="default" @tap="toPage('/pages/Certification/projectEvaluation')">详情</button>
					</view>
				</view>
				<view class="item">
					<view class="left">
						<image src="../../static/image/ico/auth-ico-4.png" mode="" class="ico"></image>
						<view class="item-cont">
							<view class="name">接单权重</view>
							<view class="des">完成的项目口碑约好，接单权重越高</view>
						</view>
					</view>
					<view class="right">
						<button type="default" @tap="toPage('/pages/Certification/orderWeight')">详情</button>
					</view>
				</view>
			</view>
		</view>
		<view class="content">
			<view class="title">平台认证</view>
			<view class="cont">
				<view class="item">
					<view class="left">
						<image src="../../static/image/ico/auth-ico-5.png" mode="" class="ico"></image>
						<view class="item-cont">
							<view class="name">项目经理</view>
							<view class="des">完成验证，提高信用度</view>
						</view>
					</view>
					<view class="right">
						<button type="default">未开放</button>
					</view>
				</view>
				<view class="item">
					<view class="left">
						<image src="../../static/image/ico/auth-ico-6.png" mode="" class="ico"></image>
						<view class="item-cont">
							<view class="name">产品经理</view>
							<view class="des">完成验证，提高信用度</view>
						</view>
					</view>
					<view class="right">
						<button type="default">未开放</button>
					</view>
				</view>
				<view class="item">
					<view class="left">
						<image src="../../static/image/ico/auth-ico-7.png" mode="" class="ico"></image>
						<view class="item-cont">
							<view class="name">自由职业者</view>
							<view class="des">完成验证，提高信用度</view>
						</view>
					</view>
					<view class="right">
						<button type="default">未开放</button>
					</view>
				</view>
			</view>
		</view>
		<view class="content">
			<view class="title">社区影响力</view>
			<view class="cont">
				<view class="item">
					<view class="left">
						<image src="../../static/image/ico/auth-ico-8.png" mode="" class="ico"></image>
						<view class="item-cont">
							<view class="name">问大牛</view>
							<view class="des">完成验证，提高信用度</view>
						</view>
					</view>
					<view class="right">
						<button type="default">未绑定</button>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				background: {
					backgroundColor:"#4A90E2"
				},
			}
		},
		onLoad() {
			
		},
		onShow() {
			
		},
		onPullDownRefresh() {

		    setTimeout(function () {
		        uni.stopPullDownRefresh();
		    }, 1000);
		},
		methods: {
			toPage(url){
				uni.navigateTo({
				    url: url
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.main{
		min-height: 100vh;
		background-color: #f9f9f9;
		padding:30rpx;
		.score{
			padding: 42rpx 0 20rpx 0;
			background: #4A90E2;
			.title{
				font-size: 32rpx;
				font-weight: 500;
				color: #FFFFFF;
				line-height: 45rpx;
				text-align: center;
			}
			.cont{
				width: 222rpx;
				height: 222rpx;
				margin: 37rpx auto 0 auto;
				background: #FFFFFF;
				border: 10rpx solid #8BB7EB;
				border-radius: 50%;
				display: flex;
				align-items: center;
				justify-content: center;
				flex-direction:column;
				
				.num{
					width: 100%;
					text-align: center;
				}
				
			}
		}
		.content{
			margin-top: 30rpx;
			background: #FFFFFF;
			border-radius: 8rpx;
			padding: 26rpx 30rpx;
			.title{
				font-size: 30rpx;
				font-weight: 500;
				color: #333333;
				line-height: 42rpx;
			}
			.cont{
				.item{
					display: flex;
					justify-content: space-between;
					align-items: center;
					padding: 30rpx 0;
					border-bottom: 1px solid #E6E6E6;
					&:last-child{
						border-bottom: 0;
					}
					.left{
						display: flex;
						align-items: center;
						.ico{
							width: 95rpx;
							height: 95rpx;
							
						}
						.item-cont{
							margin-left: 15rpx;
							.name{
								font-size: 32rpx;
								font-weight: 500;
								color: #333333;
								line-height: 32rpx;
							}
							.des{
								font-size: 24rpx;
								font-weight: 400;
								color: #888888;
								line-height: 33rpx;
								margin-top: 22rpx;
							}
						}
					}
					button{
						height: 46rpx;
						border-radius: 23rpx;
						padding: 0rpx 24rpx;
						font-size: 26rpx;
						font-weight: 500;
						color: #FFFFFF;
						line-height: 46rpx;
						background: #AEAEAE;
						&::after{
							border: 0;
						}
					}
					.active{
						background: #4A90E2;
					}
				}
			}
		}

	}
</style>
